package com.itheima.mongoservice;

import com.itheima.pojo.mongo.Comment;
import org.bson.types.ObjectId;

import java.util.List;

public interface CommentsServiceApi {
    List<Comment> getMovementComments(Integer page, Integer pagesize, String movementId);

    void comment(Comment comment);

    boolean isExist(ObjectId id, String uid, int i);

    void deleteComment(ObjectId id, String uid, int i);

    Long getCount(String messageID);

    List<Comment> getComments(Long uid, int i);

    Comment getById(ObjectId id);

    void updateLikeCount(ObjectId id, Boolean flag);
}
